#include <stdio.h>
#include <string.h>

int main()
{
    const char* O = "VWXYZABCDEFGHIJKLMNOPQRSTU";
    int l;
    char d[250];
    while(1)
    {
        l=0;
        while(1)
        {
            if(scanf("%c",&d[l])==EOF) break;
            if(d[l] == '\n') break;
            l++;
        }
        d[l] = '\0';
        if(strcmp(d, "ENDOFINPUT")==0)
            return 0;
        if((strcmp(d, "START")!=0)&(strcmp(d, "END")!=0))
        {
            int i = 0;
            while(d[i]!='\0')
            {
                if((d[i]>='A')&(d[i]<='Z'))
                    printf("%c", O[d[i]-'A']);
                else
                    printf("%c", d[i]);
                i++;
            }
        }
        else if(strcmp(d, "END")==0)
            printf("\n");
    }
}
